//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"

println("hello")

var v_name = "jonas"
var v_string:String = "string"
let C_age = 20

let label = " the width is "
let with = 98
let concat = label + String(with)

let count = 3
let apple = " i have \(count) apples."
var list = [12,34,56,7,8,90]
list[1] = 990
list[0]

var dict = ["name":"jonas","city":"NJ"]
dict["name"]

//let empty = String[ ]()
var i = 0
for u in list{
//        var i = 90
    if u > 20{
        i = u + 20
    }else{
        i=u
    }
}
println(i)
var os:String? = "Hello"
os = nil

let v = "r"
var ui
switch v {
    case "r":
         ui = "good"
    case "t":
        ui = "t"
    default
        ui = "23"
}

var n = 2

while n < 100{
    n = n * 2
}
n


